package com.hushan.elevator.service;

import com.hushan.elevator.model.DeviceMnt;
import com.hushan.elevator.model.DeviceMnt;

import java.time.LocalDateTime;
import java.util.List;

public interface DeviceMntService {
    List<DeviceMnt> findAllDeviceMnt();
    DeviceMnt findDeviceMntById(Integer id);
    List<DeviceMnt> findDeviceMntByDeviceId(Integer deviceId);
    List<DeviceMnt> findDeviceMntByCreatedTimeBetween(LocalDateTime start, LocalDateTime end);
    List<DeviceMnt> findDeviceMntByUpdatedTimeBetween(LocalDateTime start, LocalDateTime end);
    List<DeviceMnt> findDeviceMntByIsDeleted(Boolean isDeleted);
    void addDeviceMnt(DeviceMnt DeviceMnt);
    void deleteDeviceMnt(Integer id);

    DeviceMnt findLatestRecord(Integer deviceId);
}